package club.zhilin.guli.service.cms.domain;

import club.zhilin.guli.service.base.model.BaseDomain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 广告推荐
 * </p>
 *
 * @author zhilin
 * @since 2022-02-22 16:00:09
 */
@Getter
@Setter
@TableName("cms_ad")
@ApiModel(value = "Ad对象", description = "广告推荐")
public class Ad extends BaseDomain {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("类型ID")
    @TableField("type_id")
    private String typeId;

    @ApiModelProperty("图片地址")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty("背景颜色")
    @TableField("color")
    private String color;

    @ApiModelProperty("链接地址")
    @TableField("link_url")
    private String linkUrl;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;


}
